import { createRouter, createWebHistory } from 'vue-router';
import Login from '../views/userLogin.vue';
import Register from '../views/userRegister.vue';
import List from '../views/dataList';
import JobEdit from '../views/jobEdit';
import addJob from '../views/addJob';

const routes = [
    { path: '/login', component: Login },
    { path: '/register', component: Register },
    { path: '/list', component: List },
    { path: '/job-edit/:id', component: JobEdit, props: true },
    { path: '/add-job', component: addJob },
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;
